<template>
  <div id="app">
    <van-skeleton title :row="5" v-if="isShow" />

    <router-view v-else></router-view>
  </div>
</template>

<script setup>
import { ref, watch } from "vue";

import { useRoute, useRouter } from 'vue-router'

const router = useRouter()
const route = useRoute()

let isShow = ref(true);
watch(() => route.name, (newValue, oldValue) => {
  isShow.value = ref(true);
  setTimeout(() => {
    isShow.value = false;
  }, 500)
})


</script>

<style lang="scss" scoped></style>